package com.meila.cms.entity;

/**
 * 专门用来返回Ajax处理之后结果json数据的对象
 * 
 * @author Administrator
 * 
 */
public class AjaxObj {
	/**
	 * false表示失败 true表示成功
	 */
	private boolean result;
	/**
	 * 提示信息
	 */
	private String msg;
	/**
	 * 附加对象，用来存储一些特定的返回信息
	 */
	private Object obj;
 
	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public AjaxObj() {
		result = true;
	}

	public AjaxObj(boolean result, String msg, Object obj) {
		super();
		this.result = result;
		this.msg = msg;
		this.obj = obj;
	}

	public AjaxObj(boolean result, String msg) {
		super();
		this.result = result;
		this.msg = msg;
	}

	public AjaxObj(boolean result) {
		super();
		this.result = result;
	}

}
